package binaryday01;

public class Demo03 {
    public static void main(String[] args) {
        int n = 0x179d5d9e;
        int m = 0xff;
        int k = m & n;
        int b3,b2,b1;
        b3=(n>>>8) & m;
        b2=(n>>>16) & m;
        b1=(n>>>24) & m;
        System.out.println(Integer.toBinaryString(n));
        System.out.println(n);
        System.out.println(Integer.toBinaryString(m));
        System.out.println(m);
        System.out.println(Integer.toBinaryString(k));
        System.out.println(k);
        System.out.println(b3);
        System.out.println(Integer.toBinaryString(b3));
        System.out.println(b2);
        System.out.println(Integer.toBinaryString(b2));
        System.out.println(b1);
        System.out.println(Integer.toBinaryString(b1));
    }
}
